* coding.c (produce_chars): Use ptrdiff_t, not int.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000 (00:57 -0700)
src/ChangeLog
src/coding.c

index 8db630b44accd1dd0956895ea5bf16c2237f287c..35ba084e7cfb2b63b0efa45510fddf1fe0d715e6 100644 (file)
@@ -1,5 +1,7 @@
 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * coding.c (produce_chars): Use ptrdiff_t, not int.
+
        * xterm.c (x_draw_underwave): Check for integer overflow.
        This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
 
index ab13f0311c0db202b24c038048589c77858f54a4..64826ae16b9a345623f4bf90df4ade269bfdbe6d 100644 (file)
@@ -6765,7 +6765,8 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
 
       while (buf < buf_end)
        {
-         int c = *buf, i;
+         int c = *buf;
+         ptrdiff_t i;
 
          if (c >= 0)
            {